import wda
import time

# https://www.cnblogs.com/LanTianYou/p/10205499.html
# 参考文档

# 1.bulid wda
# 2.xcodebuild -project /Users/huangzetao/Desktop/webdriveragent-xcode_12//WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination "id=0f33294acdd564a9fd04eea72bd135e81ce4bbcd" test


c = wda.Client('http://169.254.116.191:8100')
print(c.status())
s = c.session('com.kwai.gifshow.beta1')
time.sleep(3)
s(name="发现").click()
time.sleep(1)
s(label="菜单").click()
time.sleep(1)
